🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@8base/auth

Package Overview
Dependencies
Maintainers
3
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8base/auth

The 8base Auth package contains a provider with authentication state and auth helpers.

0.20.4
Source
npm
Version published
Weekly downloads
433
4.34%
Maintainers
3
Weekly downloads
 
Created
Source

8base Auth

The 8base Auth package contains a provider with authentication state and auth helpers.

AuthProvider

Table of Contents

  • AuthProvider

AuthProvider

Extends React.Component

Provides access to the authentication state.

Parameters

  • props AuthProviderProps

Properties

  • children React$Node Children of the provider.
  • authClient AuthClient Instance of the auth client.

Usage

import { AuthContext, AuthProvider, type AuthContextProps } from '@8base/auth';
import { WebAuth0AuthClient } form '@8base/web-auth0-auth-client';

  const authClient = new WebAuth0AuthClient({
    domain: 'domain',
    clientId: 'client-id',
    redirectUri: `${window.location.origin}/auth/callback`,
    logoutRedirectUri: `${window.location.origin}/auth`,
    workspaceId: 'workspace-id',
  });

  <AuthProvider authClient={ authClient }>
    ...
      <AuthContext.Consumer>
        {
          (auth: AuthContextProps) => (<div />)
        }
      </AuthContext.Consumer>
    ...  
  </AuthProvider>

FAQs

Package last updated on 14 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts